|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extends IAnnotationModel
with the ability to attach additional annotation models to it.
Method Summary | |
void |
addAnnotationModel(Object key,
IAnnotationModel attachment)
Attaches attachment to the receiver. |
IAnnotationModel |
getAnnotationModel(Object key)
Returns the attached IAnnotationModel for key , or null
if none is attached for key . |
IAnnotationModel |
removeAnnotationModel(Object key)
Removes and returns the attached IAnnotationModel for key . |
void |
replaceAnnotations(Annotation[] annotationsToRemove,
Map annotationsToAdd)
Replaces annotations with new annotations for this annotation model. |
Method Detail |
public void addAnnotationModel(Object key, IAnnotationModel attachment)
attachment
to the receiver. Connects attachment
to
the currently connected document. If attachment
is already attached (even)
under a different key), it is not attached again.
key
- the key through which the attachment is identified.attachment
- the attached IAnnotationModel
public IAnnotationModel getAnnotationModel(Object key)
IAnnotationModel
for key
, or null
if none is attached for key
.
key
- the key through which the attachment is identified.
IAnnotationModel
attached under key
, or null
public IAnnotationModel removeAnnotationModel(Object key)
IAnnotationModel
for key
.
key
- the key through which the attachment is identified.
IAnnotationModel
attached under key
, or null
public void replaceAnnotations(Annotation[] annotationsToRemove, Map annotationsToAdd) throws ClassCastException
annotationsToRemove
- the annotations to be removed, may be null
annotationsToAdd
- the annotations which will be added, may be null
each map entry has an Annotation
as key and a Position
as value
ClassCastException
- if one of the map key or values has a wrong type
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |